package xyz.luhui1hao.sort;

import java.util.Comparator;

/**
 * @ClassName AgeComparator
 * @Description TODO
 * @Author luhui1hao
 * @Date 2018/9/25 4:06 PM
 * @Version 1.0
 */
public class AgeComparator implements Comparator<Person> {

    @Override
    public int compare(Person o1, Person o2) {
        return o1.getAge() - o2.getAge();
    }
}
